<?php

/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-25 10:43:29
 * @lastTime 2020-05-01 23:00:46
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Design\Structural\Decorator;

class ExtraBed extends BookingDecorator
{
    private const PRICE = 30;


    public function calculatePrice(): int
    {
        return ($this->booking->calculatePrice() + self::PRICE);

    }//end calculatePrice()


    public function getDescription(): string
    {
        return $this->booking->getDescription().' with extra bed';

    }//end getDescription()


}//end class
